<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户增加页面</title>
<link rel="stylesheet" type="text/css" href="../../Res/LayUI/css/layui.css" media="all">
<style type="text/css">
	body{
		margin:20px 0px;
	}
</style>
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>增加用户</legend>
	</fieldset>
    
	<form class="layui-form" action="../../UserAction/addUser" method="post">
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">用户名</label>
				<div class="layui-input-inline">
					<input type="text" name="userName" id="userName" 
						lay-verify="" placeholder="请输入用户名" maxlength="18"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">性别</label>
				<div class="layui-input-inline">
					<input type="radio" name="userSex" value="男">男
					<input type="radio" name="userSex" value="女">女
				</div>
			</div>
		</div>	
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">电话号码</label>
				<div class="layui-input-inline">
					<input type="text" name="userPhone" id="userPhone" 
						lay-verify="" placeholder="请输入电话号码" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">是否有效</label>
				<div class="layui-input-inline">
					<select class="input-xlarge" name="isva" id="isva">
						<option value="2">有效</option>
						<option value="1">无效</option>
					</select>
				</div>
			</div>
			
			<div class="layui-inline">
				<label class="layui-form-label">密码</label>
				<div class="layui-input-inline">
					<input type="text" name="oper" id="oper" 
						lay-verify="" placeholder="请输入密码" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" id="submit" class="layui-btn" lay-submit=""
					lay-filter="Add" value="立即增加">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div> 
		</div>
	</form>
	<script src="../../Res/LayUI/layui.js" charset="utf-8"></script>
	<script type="text/javascript">
		layui.use(['form','tree'], function(){
			var form = layui.form
			,layer = layui.layer
			,$ = layui.$;
			  
			form.on('submit(Add)',function(){
		   		parent.location.reload(); // 父页面刷新
			});
		});
		
	</script>
</body>
</html>